﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ClientWebPart Name="Youtube App Part" Title="YouTube" Description="Youtube App Part" DefaultWidth="405" DefaultHeight="230">

    <!-- Content element identifies the location of the page that will render inside the client web part
         Properties are referenced on the query string using the pattern _propertyName_
         Example: Src="~appWebUrl/Pages/ClientWebPart1.aspx?Property1=_property1_" -->
    <Content Type="html" Src="~appWebUrl/Pages/Youtube_App_Part.aspx?{StandardTokens}&amp;YouTubeUrl=_YouTubeUrl_&amp;VideoFormat=_VideoFormat_" />

    <!-- Define properties in the Properties element.
         Remember to put Property Name on the Src attribute of the Content element above. -->
    <Properties>
      <Property
        Name="YouTubeUrl" Type="string"
        WebBrowsable="true" WebDisplayName="YouTube Url"
        WebDescription="" WebCategory="YouTube"
        DefaultValue="http://www.youtube.com/watch?v=........" RequiresDesignerPermission="true">
      </Property>
      <Property
        Name="VideoFormat" Type="enum"
        WebBrowsable="true" WebDisplayName="Video format"
        WebDescription="" WebCategory="YouTube"
        DefaultValue="400" RequiresDesignerPermission="true">
        <EnumItems>
          <EnumItem WebDisplayName ="256x144" Value="256"/>
          <EnumItem WebDisplayName ="350x197" Value="350"/>
          <EnumItem WebDisplayName ="400x225" Value="400"/>
          <EnumItem WebDisplayName ="450x253" Value="450"/>
          <EnumItem WebDisplayName ="500x281" Value="500"/>
          <EnumItem WebDisplayName ="550x309" Value="550"/>
          <EnumItem WebDisplayName ="640x360" Value="640"/>
          <EnumItem WebDisplayName ="853x480" Value="853"/>
        </EnumItems>
      </Property>

    </Properties>

  </ClientWebPart>
</Elements>
